home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-11 | 511 b | 24 lines | [TEXT/ttxt] |
- ; echos input to the screen
- looptop
- jump:sub input
- compare:char '.'=>reg0 ; stops when given a period
- jump:equal done
- jump:sub output
- jump looptop
- done
- halt
- input ; this is the non-handshaking input routine
- copy:byte instatus,Reg0
- jump:equal input
- copy:byte indata=>reg0
- return
-
- output ; this is the non-handshaking output routine
- copy:long reg0,savedata
- copy:byte outstatus=>reg0
- jump:not_equal output
- copy:long savedata,Reg0
- copy:byte reg0,outdata
- return
- savedata variable:long 1
- end